{% comment %}
<!--
  Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/>
  Created on 2010-05-18.
  $Id$
-->
{% endcomment %}


{% if group_stat and top_posters %}

  <div>

    {% for top_poster in top_posters %}
      <div class="user-box">
        <div class="user-avatar">
          <a href="{% url friday.view_profile username=top_poster.poster.username %}">
            <img src="{% url friday.view_avatar username=top_poster.poster.username %}" alt="{{ top_poster|escape }}"/>
          </a>
        </div>
        <div class="user-info">
          <img class="icon" src="{{ static_ }}/images/award.png" alt="Top poster"/>
          <a href="{% url friday.view_profile username=top_poster.poster.username %}">
            {{ top_poster|escape }}
          </a>
          <br/>
          Posted <b>{{ top_poster.post_count }}</b> messages
        </div>
        <div class="clear"></div>
      </div>
    {% endfor %}

    <p>
      Total <b>{{ group_stat.post_count }}</b> posts in {{ group_stat.start_date|date:"N Y" }}
      &bull;
      <a href="{% url friday.view_group_stat group_uid=group_stat.group.uid %}">Details &raquo;</a>
    </p>

  </div>

{% else %}

  <p class="na">
    <img class="icon" src="{{ static_ }}/images/error.png" alt="Error"/>
    Group statistic not available.
  </p>

{% endif %}

